package com.example.cyk.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
public class Article implements Serializable {

    private Long id;
    private Long boardId;
    private Long userId;
    private String title;
    private String desc;
    private String content;
    private Integer likeCount;      //点赞数量
    private Integer commentCount;   //评论数量
    private Integer collectCount;   //收藏数量
    private byte deleteState;
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss", timezone = "GMT+8")
    private LocalDateTime updateTime;

}
